package robocup.component.infotypes;

/**
 * This class is a super-type for the info-objects of the coach, and represents
 * those, that have at least a position.
 */
public class CoachVisualObjectInfo
    extends Info {

  /**
   * The x-coordinate of the position of this object.
   */
  protected double xPos;

  /**
   * The y-coordinate of the position of this object.
   */
  protected double yPos;

  /**
   * Constructs a generic visual info object for the coach - everything that has
   * at least a psoition (player/ball)
   * 
   * @param iCycle -
   *          when was it seen
   * @param xPos -
   *          the position (x-value)
   * @param yPos -
   *          the position (y-value)
   */
  public CoachVisualObjectInfo(
      final int iCycle,
      final double xPos,
      final double yPos) {

    super(iCycle);
    this.xPos = xPos;
    this.yPos = yPos;
  }

  /**
   * @return Returns the xPos.
   */
  public double getXPos() {

    return this.xPos;
  }

  /**
   * @return Returns the yPos.
   */
  public double getYPos() {

    return this.yPos;
  }

  /**
   * Sets the x-coordinate of this object.
   * 
   * @param pos -
   *          the x-position value.
   */
  public void setXPos(final double pos) {

    this.xPos = pos;
  }

  /**
   * Sets the y-coordinate of this object.
   * 
   * @param pos -
   *          the y-position value.
   */
  public void setYPos(final double pos) {

    this.yPos = pos;
  }
}
